package conson.tech.manage.app.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * InterfaceName: UserGrantCouponDto
 * Description: 优惠券用户领用入参实体
 * Author: XYF
 * Date: 2020/7/25 10:30
 * Version: 1.0
 */
@Data
public class UserGrantCouponDto {

    /**
     * 批次ID
     */
    @ApiModelProperty(value = "批次ID ")
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "批次ID不能为空")
    private Long batchId;
    /**
     * 活动id
     */
    @ApiModelProperty(value = "活动id ")
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "活动id不能为空")
    private Long activityId;
}
